Activity: Perform Unit Tests
Note: implementation and modification of components takes place in the context of configuration management on the project. Implementers are provided with a private development workspace (see Activity: Create Development Workspace) in which they do their work, as directed by Artifact: Work Orders. In this workspace, source elements are created and placed under configuration management, or modified through the usual check out, edit, build, unit test, and check in cycle (see Activity: Make Changes). Following the completion of some set of components (as defined by one or more Work Orders and required for an upcoming build), the implementer will deliver (see Activity: Deliver Changes) the associated new and modified components to the subsystem integration workspace, for integration with the work of other implementers. Finally, at a convenient point, the implementer can update (or rebaseline) the private development workspace so that it is consistent with the subsystem integration workspace (see Activity: Update Workspace). Unit means not only a class in an object-oriented language, but also free subprograms, such as functions in C++. For each unit (implemented class) you perform the following steps for unit testing: Execute Unit Test
To execute unit test, the following steps should be followed:
Evaluate Execution of Test
The execution of testing ends or terminates in one of two conditions:
If testing terminates normally, then continue with Verify Test Results:
If testing terminates abnormally, continue with Recover from Halted Tests, below. Verify Test Results
Upon the completion of testing, the test results should be reviewed to ensure that the test results are reliable and reported failures, warnings, or unexpected results were not caused by external influences (to the target-of-test), such as improper set-up or data. If the reported failures are due to errors identified in the test artifacts, or due to problems with the test environment, the appropriate corrective action should be taken and the testing re-executed. For additional information, see "Recover From Halted Tests" below. If the test results indicate the failures are genuinely due to the target-of-test, then the Execute Test Activity is complete and the next activity is to Evaluate Test. Recover From Halted Tests
There are two major types of halted tests:
Both types of abnormal termination to testing may exhibit the same symptoms:
To recover from halted tests, do the following:
Copyright ⌐ 1987 - 2000 Rational Software Corporation |
Rational Unified
Process |